<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>The Nature of Code</title>
	<link rel="stylesheet" href="stylesheets/fonts.css" type="text/css">
  <link rel="stylesheet" href="stylesheets/print.css" type="text/css">
	<link rel="stylesheet" href="stylesheets/math.css" type="text/css">
	<link rel="stylesheet" href="stylesheets/code-print.css" type="text/css">
  <script>
    window.onload= function() {
      offsetUps = document.getElementsByClassName('offset-up');
      for(var i=0; i < offsetUps.length; i++) {
        var element = offsetUps[i];
        var comment = element.getElementsByClassName('code-comment')[0];
        var height = comment.innerHTML.length / 50;
        comment.style.top = '-' + (height * 1.4 + 2) +  'em';
      }
    };
  </script>
</head>
<body>
	<%= render_children(views, filter_results) %>
</body>
</html>